package com.admin.fen;

import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmMaterialDto;
import com.usian.model.media.dtos.WmNewsPassDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.user.pojos.ApAuthor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("leadnews-wemediatu")
public interface Adminfenmemediafeign {
    @GetMapping("wemediatu/api/vi/getfindbyid")
     WmNews getfindbyid(@RequestParam Integer id);

    @PostMapping("wemediatu/api/vi/wzlist")
    ResponseResult meitilist(@RequestBody NewsAuthDto dto);

    //    媒体全查
    @PostMapping("wemediatu/api/vi/wzlisttu")
    public ResponseResult wzlisttu(@RequestBody NewsAuthDto dto);

    @GetMapping("wemediatu/api/vi/findbyid/{id}")
    ResponseResult findbyudbews(@PathVariable Integer id);

    @PostMapping("wemediatu/api/vi/updatewmnews")
    public ResponseResult updatewmnews(@RequestBody WmNews wmNews);

    @GetMapping("wemediatu/api/vi/getbynew")
    WmNews getbynew(@RequestParam Integer id);

    @RequestMapping("wemediatu/api/vi/zidongshenhe")
    List<Integer> zidongshenhe();

    @RequestMapping("wemediatu/api/vi/meitihuixian/{id}")
    ResponseResult meitihuixian(@PathVariable Integer id);

    @RequestMapping("wemediatu/api/vi/pass")
    ResponseResult pass(@RequestBody WmNewsPassDto wmNewsPassDto);

    @RequestMapping("wemediatu/api/vi/fail")
    ResponseResult fail(@RequestBody WmNewsPassDto wmNewsPassDto);

//

}
